-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatability mode for forbidden APIs for Java 12 #37199
Conversation
Pinging @elastic/es-core-infra |
project.runtimeJavaVersion.getMajorVersion() : project.runtimeJavaVersion | ||
if (project.runtimeJavaVersion > JavaVersion.VERSION_11) { | ||
doLast { | ||
println "Forbidden APIs does not support java version past 11. Will use the signatures from 11 for " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why a bare print statement? Seems this should at least be a warning log. But what can a dev do about it? Maybe nothing should be printed and an issue created and linked here to remove once forbidden apis supports Java 12.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, i converted it to info so it leaves a trace in CI.
An issue isn't actionable either unless we implement the support in forbidden APIs ourselves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Limit the maximum
targetVersion
we setforbiddenApis
to. No support for Java 12 yet.Closes #37007.